cp target/renren-generator-1.0.0.jar /home/comfan/gitrepo/renren-generator/target/renren-generator-1.0.0.jar
cd /home/comfan/gitrepo/renren-generator
if [ -f pid ]; then
  kill -9 $(cat pid)
fi
java -jar /home/comfan/gitrepo/renren-generator/target/renren-generator-1.0.0.jar
echo $! > pid
exit 0